package com.inspection.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ModelNameEnum {

    INSPECTION("inspection","考核文件"),
    BACKGROUND("background","系统背景图"),
    SYSTEM_FILE("systemFile","系统文件"),
    ;

    String value;
    String desc;

    public static ModelNameEnum getByValue(String value){
        for (ModelNameEnum modelNameEnum : ModelNameEnum.values()) {
            if(modelNameEnum.getValue().equals(value)){
                return modelNameEnum;
            }
        }
        return null;
    }
}
